package com.vitalfit.repository;

import com.vitalfit.model.entity.food.FoodCategory;
import org.jetbrains.annotations.NotNull;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface FoodCategoryRepository extends JpaRepository<FoodCategory,Integer> {



    @NotNull
    Page<FoodCategory> findAll(@NotNull Pageable pageable);

    FoodCategory findByCategoryName(String categoryName);
}
